package com.jxbeidou.system.menu.service;

import com.jxbeidou.core.entity.PageResult;
import com.jxbeidou.core.mybatis.service.BaseService;
import com.jxbeidou.system.menu.vo.PermissionVO;
import com.jxbeidou.system.menu.query.PermissionQuery;
import com.jxbeidou.system.menu.entity.PermissionDO;

import java.util.List;

/**
 * 菜单表
 *
 * @author 杜晓祥 
 * @since 1.0.0 2023-12-14
 */
public interface PermissionService extends BaseService<PermissionDO> {

    PageResult<PermissionVO> page(PermissionQuery query);

    void save(PermissionVO vo);

    void update(PermissionVO vo);

    void delete(List<Long> idList);

    /**
     * 根据用户ID查询，用户拥有的菜单权限
     * @Author 杜晓祥
     * @Date 2023/12/15
     * @param userId
     * @return java.util.List<com.jxbeidou.system.menu.entity.PermissionDO>
     */
    List<PermissionDO> selectByUserId (Long userId);
}